package net.duricomeilmetallo.jpdp8;



/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
// net.duricomeilmetallo.bitarray;
/**
 *
 * @author Paolo
 */
public class TestProcessore {
public static void main (String args[]){
BitArray p = new BitArray(15);
    p.assign(2);
    BitArray b = new BitArray(15);
    b.assign(-2);
    try {
    p.add(b);
    p.increment();
    }
    catch(IncompatibleLengthException e){ System.out.println(e.getMessage()); }
    System.out.println(p.getBinaryString());
    
}
}
